package demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException{
//        Person p=new Person();
//        p.sayHello();
//
//
//        Class cls=Class.forName("demo.Person");
//        Person p1=(Person)cls.newInstance();
//        p1.sayHello();
        
    }

    AnnotationConfigApplicationContext context
            = new AnnotationConfigApplicationContext("demo1");
}
